package com.ganbo.stock.task;

import com.ganbo.stock.config.StockJobSwitchConfig;
import com.ganbo.stock.service.impl.ReleaseBanService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 当天逐笔大单交易
 *
 * @Author: ganbo
 * @Date: 2020/12/28 18:04
 */

@Component
@Slf4j
public class ReleaseBanJob {

    @Autowired
    ReleaseBanService releaseBanService;
    @Autowired
    StockJobSwitchConfig switchConfig;


//    @Scheduled(cron = "*/5 * * * * ?")
//    public void updateCompanyInfoTask() {
//        if (switchConfig.isReleaseBanJob()) {
//            log.info("获取当前解禁限售信息 start.");
//            releaseBanService.fetchTodayReleaseBanStockInfo();
//            log.info("获取当前解禁限售信息 end.");
//        }
//
//    }


}
